More precisely, this getline is specific to GNU libc, i.e., to Linux. However, if the intent is to have a line-reading function (as opposed to learning C), ... ... <看更多>
Search
Search
More precisely, this getline is specific to GNU libc, i.e., to Linux. However, if the intent is to have a line-reading function (as opposed to learning C), ... ... <看更多>
Your getline function looks more like a variant of fgets than getline . If size == 0 , size - 1 == SIZE_MAX , a very large number. ... <看更多>